<?php 
require "DataLoad.php";
CheckAdmin2();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>
<head>
<title><?php echo $GuildName;?> - DKP系统</title>
<script language="JavaScript" src="inc/jquery.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="Generator" content="EditPlus">
<meta name="Author" content="SULei">
<meta name="Keywords" content="DKP WOW GUILD">
<meta name="Description" content="">
<link href="<?php echo $StylePath;?>/main.css" rel="stylesheet" type="text/css" />
<script language="JavaScript" src="<?php echo $StylePath;?>/styleplus.js"></script>

</head>

<body>
<div class="header">
<?php
require "menu.php";
?>
</div>
<div class="main">
<?php 
switch ($_GET["Action"]) {
case "Form"://显示表单:
	ImportForm();
	break;
case "RexPost":
	$X = new ReportAnalytic();
	$X->load_report_xml($_POST["xmltext"]);
	$X->create_report();

	$X->debuggshow();
	break;
default:
	ImportMenu();
	break;
} 
?>

	</div>
<?php require "footer.php"; ?>
</body>
</html>




<?php 

function ImportForm() {
	print "<form method='post' action='?Action=RexPost'><table class='outframe interlace'>";
	print "<tr><th colspan='2'><div class='title'><img src='images/icon/armorkit.jpg'>数据导入 - 通过导入记录插件的数据来建立活动 </div><div class='filter'><a href='admin_raid.php?action=newplan' class='abtn3'>采用手工方式建立</a></div></th></tr>";
	print "<tr><td width='150px'>DKP分类</td><td> ".formselect("raid_class","id","class_name"," ")." </td></tr>";
	//Response.write "<tr><td>数据来源</td><td><select name='xmlversion'><option value='auto' selected>自动</option><option value='RT150'>CT_RaidTrack 1.5.0 (MLdkp输出格式)</option><option value='MRT207'>MerRT 2.0.7 (新CTRT字串)</option></select></td></tr>"
	print "<tr><td>字串 (必填)</td><td>复制来自活动记录插件的字串到这里<br><textarea name='xmltext' rows='15' style='width:90%;'></textarea></td></tr>";
	print "<tr><td></td><td><a href=\"javascript:;\" name='expansion'>+ 填写详细信息</a></td></tr>";
	print "<tr class='expansion'><td>活动标题</td><td><input name='raid_title' value='' size='40' /></td></tr>";
	print "<tr class='expansion'><td>指挥人</td><td><input name='raid_commander' value='' size='20' /></td></tr>";
	print "<tr class='expansion'><td>活动备注</td><td><textarea type='text' name='raid_plan' style='width:300px;height:50px;' ></textarea></td></tr>";
	print "<tr><td></td><td><input type='submit' value='提交处理' /></td></tr>";
	print "</table></form>";
	echo "<table class='AddonTable interlace outframe'>";
	echo "<tr><th>支持活动记录插件</th></tr>";
	echo "<tr><td>CT-RaidTracker</td></tr>";
	echo "<tr><td>MerRT</td></tr>";
	echo "<tr><td>ShowDKP</td></tr></table>";
	return;
} 







?>




